import { lazy } from "react";

let routes=[
   {
       path:"/layout",
       component:lazy(()=>import("../pages/layout")),
       meta:{},
       children:[
        {
            path:"/home",
            component:lazy(()=>import("../pages/home")),
            meta:{
                title:"主页",
                icon:"icon-qiepian",
            },
            children:[
                {
                    path:"/home/guanzhu",
                    component:lazy(()=>import("../pages/home/guanzhu")),
                    meta:{
                        title:"关注",
                        icon:"",
                    }, 
                },
                {
                    path:"/home/tuijian",
                    component:lazy(()=>import("../pages/home/tuijian")),
                    meta:{
                        title:"推荐",
                        icon:"",
                    }, 
                },
                {
                    path:"/home/zuixin",
                    component:lazy(()=>import("../pages/home/zuixin")),
                    meta:{
                        title:"最新",
                        icon:"",
                    }, 
                },
            ]
        },
        {
            path:"/letter",
            component:lazy(()=>import("../pages/letter")),
            meta:{
                title:"私信",
                icon:"icon-xiaoxi2",
            },
            children:[],
        },
        {
            path:"/mine",
            component:lazy(()=>import("../pages/mine")),
            meta:{
                title:"我的",
                icon:"icon-my",
            },
            children:[],
        }
       ]
   }
]
export default routes